package com.oceansoft.core.system.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.oceansoft.core.system.dao.ISysDictDao;
import com.oceansoft.core.system.domain.SysDict;
import com.oceansoft.core.system.service.ISysDictService;

/**
 * 数据字典-业务层接口实现类
 * @author yixin
 *
 */
@Service
@Transactional
public class SysDictServiceImpl implements ISysDictService{
	@Resource
	private ISysDictDao sysDictDao;
	
	public List<SysDict> query(String dictType) {
		return sysDictDao.query(dictType);
	}
	
	@Override
	public SysDict queryByCodeAndType(String code, String dictType) {
		return sysDictDao.queryByCodeAndType(code, dictType);
	}
	
}
